<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: wb32l003_beep.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_6d2d5b60bd20db849a9486835a2715aa.html">Libraries</a></li><li class="navelem"><a class="el" href="dir_5ec8cccc32fa528457f3b4ed28e1a2cf.html">WB32L003_StdPeriph_Driver</a></li><li class="navelem"><a class="el" href="dir_cb9a941ec225bfb9bad4e8246158e282.html">inc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">wb32l003_beep.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="wb32l003__beep_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">/* Define to prevent recursive inclusion -------------------------------------*/</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#ifndef __WB32L003_BEEP_H</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#define __WB32L003_BEEP_H</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160; <span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">/* Includes ------------------------------------------------------------------*/</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &quot;wb32l003.h&quot;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">/* Exported types ------------------------------------------------------------*/</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="struct_b_e_e_p___init_type_def.html">   34</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;{  </div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="struct_b_e_e_p___init_type_def.html#a9f29ac9a71c0cbc60dce6ec9e18f19f8">   36</a></span>&#160;  uint32_t <a class="code" href="struct_b_e_e_p___init_type_def.html#a9f29ac9a71c0cbc60dce6ec9e18f19f8">BEEP_ClkSel</a>;           </div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="struct_b_e_e_p___init_type_def.html#a28a33ac29ad6ad174e68e8b4e68b567e">   39</a></span>&#160;  uint32_t <a class="code" href="struct_b_e_e_p___init_type_def.html#a28a33ac29ad6ad174e68e8b4e68b567e">BEEP_Prescaler</a>;        </div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="struct_b_e_e_p___init_type_def.html#a1a0e0f38eef847d1d99d104d5c38a9a1">   42</a></span>&#160;  uint32_t <a class="code" href="struct_b_e_e_p___init_type_def.html#a1a0e0f38eef847d1d99d104d5c38a9a1">BEEP_OutDiv</a>;           </div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;} <a class="code" href="struct_b_e_e_p___init_type_def.html">BEEP_InitTypeDef</a>;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="comment">/* Exported constants --------------------------------------------------------*/</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor">#define IS_BEEP_ALL_PERIPH(PERIPH)   (((PERIPH) == BEEP))</span></div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="preprocessor">#define BEEP_ClkSel_STOP                      ((uint32_t)0x00 &lt;&lt; BEEP_CSR_CLKSEL_Pos)</span></div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="preprocessor">#define BEEP_ClkSel_LSI                       ((uint32_t)0x01 &lt;&lt; BEEP_CSR_CLKSEL_Pos)</span></div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="preprocessor">#define BEEP_ClkSel_HSE                       ((uint32_t)0x02 &lt;&lt; BEEP_CSR_CLKSEL_Pos)</span></div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="preprocessor">#define BEEP_ClkSel_PCLK                      ((uint32_t)0x03 &lt;&lt; BEEP_CSR_CLKSEL_Pos)</span></div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="preprocessor">#define BEEP_OutDiv8                          ((uint32_t)0x00 &lt;&lt; BEEP_CSR_BEEPSEL_Pos)</span></div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="preprocessor">#define BEEP_OutDiv4                          ((uint32_t)0x01 &lt;&lt; BEEP_CSR_BEEPSEL_Pos)</span></div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="preprocessor">#define BEEP_OutDiv2                          ((uint32_t)0x02 &lt;&lt; BEEP_CSR_BEEPSEL_Pos)</span></div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="comment">/* Exported macro ------------------------------------------------------------*/</span></div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="preprocessor">#define IS_BEEP_CLK_SEL(SEL) (((SEL) == BEEP_ClkSel_STOP) || \</span></div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="preprocessor">                              ((SEL) == BEEP_ClkSel_LSI) || \</span></div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="preprocessor">                              ((SEL) == BEEP_ClkSel_HSE) || \</span></div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="preprocessor">                              ((SEL) == BEEP_ClkSel_PCLK))</span></div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="preprocessor">#define IS_BEEP_PRESCALER(PRESCALER) ((PRESCALER) &lt; 4096)</span></div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="preprocessor">#define IS_BEEP_OUT_DIV(DIV) (((DIV) == BEEP_OutDiv2) || \</span></div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="preprocessor">                              ((DIV) == BEEP_OutDiv4) || \</span></div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="preprocessor">                              ((DIV) == BEEP_OutDiv8))</span></div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="comment">/* Exported functions --------------------------------------------------------*/</span></div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___b_e_e_p.html#ga6569658548e8bc3306d2bcc8c2b00b80">BEEP_DeInit</a>(<a class="code" href="struct_b_e_e_p___type_def.html">BEEP_TypeDef</a>* BEEPx);</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___b_e_e_p.html#ga96ad3fb19b4b28913b365083ccf49a5e">BEEP_Init</a>(<a class="code" href="struct_b_e_e_p___type_def.html">BEEP_TypeDef</a>* BEEPx, <a class="code" href="struct_b_e_e_p___init_type_def.html">BEEP_InitTypeDef</a> *BEEP_InitStruct);</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___b_e_e_p.html#ga33ffbae00b8a4a6d1b7658916f5d31de">BEEP_Cmd</a>(<a class="code" href="struct_b_e_e_p___type_def.html">BEEP_TypeDef</a>* BEEPx, FunctionalState NewState);</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;}</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/*__WB32L003_BEEP_H */</span><span class="preprocessor"></span></div><div class="ttc" id="group___b_e_e_p_html_ga33ffbae00b8a4a6d1b7658916f5d31de"><div class="ttname"><a href="group___b_e_e_p.html#ga33ffbae00b8a4a6d1b7658916f5d31de">BEEP_Cmd</a></div><div class="ttdeci">void BEEP_Cmd(BEEP_TypeDef *BEEPx, FunctionalState NewState)</div><div class="ttdoc">Enables or disables BEEP peripheral.</div><div class="ttdef"><b>Definition:</b> wb32l003_beep.c:84</div></div>
<div class="ttc" id="struct_b_e_e_p___init_type_def_html_a28a33ac29ad6ad174e68e8b4e68b567e"><div class="ttname"><a href="struct_b_e_e_p___init_type_def.html#a28a33ac29ad6ad174e68e8b4e68b567e">BEEP_InitTypeDef::BEEP_Prescaler</a></div><div class="ttdeci">uint32_t BEEP_Prescaler</div><div class="ttdef"><b>Definition:</b> wb32l003_beep.h:39</div></div>
<div class="ttc" id="group___b_e_e_p_html_ga96ad3fb19b4b28913b365083ccf49a5e"><div class="ttname"><a href="group___b_e_e_p.html#ga96ad3fb19b4b28913b365083ccf49a5e">BEEP_Init</a></div><div class="ttdeci">void BEEP_Init(BEEP_TypeDef *BEEPx, BEEP_InitTypeDef *BEEP_InitStruct)</div><div class="ttdoc">Initializes the BEEP peripheral according to the specified parameters in the BEEP_InitStruct.</div><div class="ttdef"><b>Definition:</b> wb32l003_beep.c:61</div></div>
<div class="ttc" id="struct_b_e_e_p___init_type_def_html_a9f29ac9a71c0cbc60dce6ec9e18f19f8"><div class="ttname"><a href="struct_b_e_e_p___init_type_def.html#a9f29ac9a71c0cbc60dce6ec9e18f19f8">BEEP_InitTypeDef::BEEP_ClkSel</a></div><div class="ttdeci">uint32_t BEEP_ClkSel</div><div class="ttdef"><b>Definition:</b> wb32l003_beep.h:36</div></div>
<div class="ttc" id="struct_b_e_e_p___type_def_html"><div class="ttname"><a href="struct_b_e_e_p___type_def.html">BEEP_TypeDef</a></div><div class="ttdef"><b>Definition:</b> wb32l003.h:395</div></div>
<div class="ttc" id="group___b_e_e_p_html_ga6569658548e8bc3306d2bcc8c2b00b80"><div class="ttname"><a href="group___b_e_e_p.html#ga6569658548e8bc3306d2bcc8c2b00b80">BEEP_DeInit</a></div><div class="ttdeci">void BEEP_DeInit(BEEP_TypeDef *BEEPx)</div><div class="ttdoc">Deinitializes the BEEP peripheral registers to their default reset values.</div><div class="ttdef"><b>Definition:</b> wb32l003_beep.c:40</div></div>
<div class="ttc" id="struct_b_e_e_p___init_type_def_html_a1a0e0f38eef847d1d99d104d5c38a9a1"><div class="ttname"><a href="struct_b_e_e_p___init_type_def.html#a1a0e0f38eef847d1d99d104d5c38a9a1">BEEP_InitTypeDef::BEEP_OutDiv</a></div><div class="ttdeci">uint32_t BEEP_OutDiv</div><div class="ttdef"><b>Definition:</b> wb32l003_beep.h:42</div></div>
<div class="ttc" id="struct_b_e_e_p___init_type_def_html"><div class="ttname"><a href="struct_b_e_e_p___init_type_def.html">BEEP_InitTypeDef</a></div><div class="ttdoc">BEEP Init structure definition.</div><div class="ttdef"><b>Definition:</b> wb32l003_beep.h:34</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
